"use strict";
var advertiserApp = angular.module("advertiserApp",[]);
advertiserApp.filter("filterAdType",function(){	
	return function(value){
		switch(value){
		  case "video":
		  return "视频";
		  break;
		  case "picture":
		  return "图片";
		  break;	  
		  default:
		  return null;
		 }		
	} 
});
advertiserApp.filter("filterTerminalType",function(){	
	return function(value){
		switch(value){
		  case "pad":
		  return "PAD";
		  break;
		  case "pc":
		  return "PC";
		  break;
		  case "mobile":
		  return "手机";
		  break;
		  case "tv":
		  return "互联网电视";
		  break;
		  default:
		  return null;
		 }		
	} 
});
advertiserApp.filter("filterAdStatus",function(){	
	return function(value){
		switch(value){
		  case "0":
		  return "未通过";
		  break;
		  case "1":
		  return "已通过";
		  break;
		  case "2":
		  return "待审核";
		  break;
		  default:
		  return null;
		 }		
	} 
});
advertiserApp.filter("filterStatus",function(){	
	return function(value){
		switch(value){
		  case "1":
			  return "上架";
			  break;
		  default:
		  return "下架";
		 }		
	} 
});
advertiserApp.filter("readerStatus",function(){	     
	return function(value){	   
		switch(value){		
		  case "0":
		  return "未读";
		  break;
		  case "1":
		  return "已读";
          break;		  
		  default:
		  return null; 
		 }		
	} 
});









